﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data.Entity;
using System.Collections;
using System.ComponentModel.DataAnnotations.Schema;

namespace MvcApplication1.Models
{
    public class Task
    {
        public int ID { set; get; }
        public string Title { set; get; }
        public int Priority { set; get; }
        public DateTime Date { set; get; }
        public string Description { set; get; }
        public string Status { set; get; }
    
        public int DependID { set; get; }
        public int GroupID { set; get; }
         [ForeignKey("GroupID")] 
        public  Groups Groups { set; get; }
    }

    public class TaskBunnyDBContext : DbContext
    {
        public DbSet<Task> Tasks { get; set; }
        public DbSet<Groups> Groups { set; get; }
    }
}